﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
namespace Work3
{
    internal class Program
    {
        static void Main(string[] args)
        {
            string str = "来自13145698125的高中同学说今晚他和另一位同学来我家吃晚餐。同事+8613879541685说她孩子生病了请我帮忙完成她的工作，还说请我打13549643259这个电话跟她领导说一声";
            MatchCollection results = Regex.Matches(str, @"(\+86)?1\d{10}");
            foreach (Match item in results)
            {

                Console.WriteLine("下标：{0}，值：{1}", item.Index, item.Value);
            }
            Console.ReadKey();
        }
    }
}
